package com.module.basic.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.module.common.core.domain.BaseEntity;
import com.module.common.core.domain.TreeEntity;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;

import com.module.common.annotation.Excel;

import java.util.Date;

/**
 * 采集设备对象 basic_device
 * 
 * @author ruoyi
 * @date 2025-05-17
 */
@Data
@Accessors(chain = true)
@TableName("basic_device")
public class BasicDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** deviceId */
    @TableId(type = IdType.AUTO)
    private Long deviceId;

    /** IMEI号 */
    @NotBlank(message = "IMEI号不能为空")
    @Excel(name = "IMEI号")
    private String deviceImei;

    /** IMSI号 */
    @Excel(name = "IMSI号", type = Excel.Type.EXPORT)
    private String deviceImsi;

    /** ICCID号 */
    @Excel(name = "ICCID号", type = Excel.Type.EXPORT)
    private String deviceIccid;

    /** 设备类型 */
    @Excel(name = "设备类型", combo = {"DTU", "4G"})
    private String deviceType;

    /** 运营商 */
    @Excel(name = "设备类型", dictType = "operator_type", comboReadDict = true)
    private String deviceOperator;

    /** 服务器地址 */
    private String serverIp;

    /** 服务器端口 */
    private String serverPort;

    private String serverA;

    private String serverB;

    private String serverC;

    /** 信号值 */
    private String deviceCsq;

    /** 版本号 */
    private String deviceVer;

    /** 在线状态 */
    private String onlineStatus;

    /** 上线时间 */
    private Date onlineTime;

    /** 离线时间 */
    private Date offlineTime;

    /** 删除标识 */
    @TableLogic
    private String delFlag;

}
